home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 3 / Amiga Tools 3.iso / grafik / raytracing / rayshade-4.0.6.3 / fixes / fix024 / examples / ferns.ray < prev    next >
Text File  |  1994-08-09  |  779b  |  38 lines

  1. /* Barnsley's 3D fern - a hierarchical IFS object
  2.  * (from 'Fractals Everywhere' by M. Barnsley)
  3.  * Philippe Bekaert - dpt. computer science K.U.Leuven, Leuven, Belgium
  4.  * e-mail: philippe@cs.kuleuven.ac.be */
  5.  
  6. screen 400 400 
  7. eyep 15 5 -10 
  8. lookp 0 4 -1
  9. up 0 1 0
  10. fov 35
  11. maxdepth 1
  12. sample 2
  13.  
  14. surface green
  15.     ambient 0.1 0.8 0.05
  16.         diffuse 0.1 0.8 0.05
  17.  
  18. ifs     green
  19.     2
  20.     scale .5 .5 .5  translate 0  .96 0 ,
  21.     scale .5 .5 .5  ,
  22.     1
  23.     transform   .85    0    0 
  24.              0    .85  .1 
  25.              0   -.1   .85  
  26.              0   1.6    0  , 
  27.     transform   .2   -.2    0 
  28.             .2    .2    0  
  29.              0     0   .3 
  30.              0    .8    0  ,
  31.     transform   .2    .2    0 
  32.            -.2    .2    0 
  33.              0     0   .3 
  34.              0    .8    0 ,
  35.     0
  36.     scale .8 .8 .8  rotate  1 0 0  30  rotate 0 1 0  -140  
  37. end 
  38.